-- GENERATED SPELL FOR [Avatar of Terokk] --


function spell0_22375(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(24193,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22375', 2344, 1)
end

function spell1_22375(pUnit, Event) --@Feather Burst,n/a--
pUnit:FullCastSpellOnTarget(39068,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22375', 2000, 1)
end

function Sorts_22375(pUnit, Event)
local choix_sorts_22375 = math.random(0, 1)
if choix_sorts_22375 == 0 then
pUnit:RegisterEvent('spell0_22375', 1, 1)
end
if choix_sorts_22375 == 1 then
pUnit:RegisterEvent('spell1_22375', 1, 1)
end
end

function mob22375_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22375', math.random(1500, 3000), 1)
end

function mob22375_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22375_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22375_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22375, 1, 'mob22375_Action')
RegisterUnitEvent(22375, 2, 'mob22375_Leave')
RegisterUnitEvent(22375, 3, 'mob22375_Kill')
RegisterUnitEvent(22375, 4, 'mob22375_Die')
